// 获取频道ID，从URL中提取id参数，"595660085175275520"
function main(item) {
    let url = item["url"];
    let id = ku9.getQuery( url,  "id" );
    const jsonUrl = `https://mapi-new.zztv.tv/cloudlive-manage-mapi/api/topic/detail?preview=&id=${id}&app_secret=dc302b5bb65d2bb4ad2fa45d282d7763&tenant_id=0&company_id=1015002`;
 
  const headers = {
   'Referer': jsonUrl,
    'User-Agent': 'Mozilla/5.0'};
  const portData = ku9.get( jsonUrl, JSON.stringify(headers) );
  const regex = /hls":"(.*?)"/;
  const match = portData.match(regex);
  const finalUrl = match[1].replace(/\\/g, '');
  return JSON.stringify({ url: finalUrl,headers:headers });
}